package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.StaffRoleDO;
import com.mhc.haval.dal.query.StaffRoleQuery;

import java.util.List;


/**
 * Manager for StaffRole.
 */
public interface StaffRoleManager {
    /**
     * query count by query condition.
     */
    int countByQuery(StaffRoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(StaffRoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(StaffRoleDO record);

    /**
     * insert selective.
     */
    long insertSelective(StaffRoleDO record);

    /**
     * select by query condition.
     */
    List<StaffRoleDO> selectByQuery(StaffRoleQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<StaffRoleDO> selectByQueryWithPage(StaffRoleQuery query);

    /**
     * select by primary key.
     */
    StaffRoleDO selectByPrimaryKey(Long id);

    /**
     * select by staff id.
     */
    List<StaffRoleDO> selectByStaffId(Long staffId);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( StaffRoleDO record,  StaffRoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(StaffRoleDO record, StaffRoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(StaffRoleDO record);
}